package com.liu.cloud.fiegn;

import com.liu.cloud.factory.RemoteStockFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author LIU
 * @version 1.0
 * @description: TODO
 * @date 2023/6/18 16:49
 */
@FeignClient(
        // 服务提供方服务服务名称
        value="stock-server",
        // 请求上下文路径
        path = "stock",
        // 服务降级处理
        fallbackFactory = RemoteStockFeignFallbackFactory.class
)
public interface RemoteStockFeignService {


    @RequestMapping("/reduce2")
    public String reduce2();
}
